package com.hust.hui.quicksilver.alarm.execut;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 有些报警,不需要立即上报,但是希望计数, 当大量出现时, 用于升级
 * <p/>
 * Created by yihui on 2017/4/28.
 */
public class LogExecute implements IExecute {

    private static final Logger logger = LoggerFactory.getLogger("alarm");

    @Override
    public void sendMsg(String users, String title, String msg) {
        if (logger.isDebugEnabled()) {
            logger.debug("Do send msg by {} to user:{}, title: {}, msg: {}", this.getClass().getSimpleName(), users, title, msg);
        }
    }
}
